#!usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author:chengyanan
@file: date_test.py
@time: 2019/12/22  5:46 下午
"""
import ddt
import unittest
@ddt.ddt
class DataTest(unittest.TestCase):
    def setUp(self) -> None:
        print("这个是setup")

    def tearDown(self) -> None:
        print("这个是teardown")

    @ddt.data(
        ['你好'],['不会'],['做错吗']
    )

    @ddt.ddt
    def test_01(self,data):
        print(data)

    @ddt.data(
        [1,2],[3,4],[5,6]
    )

    @ddt.unpack
    def testadd(self,x,y):
        print(x+y)
if __name__ == '__main__':
    unittest.main()